<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title></title>
		<script src="https://cdn.jsdelivr.net/npm/vue@2.6.14/dist/vue.js"></script>
	</head>
	<body>
		<div id="app">
			<ul>
				<li v-for="(stu,index) in students">{{stu}},{{index}}</li>
			</ul>
			<ul>
				<li v-for="(val,key) in worker">{{key}},{{val}}</li>
			</ul>
			<ul>
				<li v-for="s in stus" v-if="s.age > 20">{{s.name}}</li>
			</ul>
		</div>
		<script type="text/javascript">
			let vm = new Vue({
				el: '#app',
				data: {
					students: ['张三', '李四', '王五', '赵六'],
					worker: {
						name: '王二',
						age: 20,
						sex: '男'
					},
					stus: [{
							name: '郭德纲',
							age: 20
						},
						{
							name: '于谦',
							age: 30
						},
						{
							name: '岳云鹏',
							age: 40
						}
					]
				}
			})
		</script>
	</body>
</html>
